package com.ninth_group.mapper;

import com.ninth_group.po.PCWeatherInfo;
import com.ninth_group.vo.PCWeatherInfoVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface PCWeatherInfoMapper {
    PCWeatherInfoMapper INSTANCE = Mappers.getMapper(PCWeatherInfoMapper.class);

    /**
     * 将PCWeatherInfo对象转换为PCWeatherInfoVO对象
     * @param pcWeatherInfo PCWeatherInfo实体类
     * @return PCWeatherInfoVO对象
     */
    PCWeatherInfoVO toVo(PCWeatherInfo pcWeatherInfo);

    // 将PCWeatherInfo列表转换为PCWeatherInfoVO列表
    List<PCWeatherInfoVO> toVo(List<PCWeatherInfo> list);
}
